Previous Book Contents Book Index Next

Inside Macintosh: /
QuickDraw 3D RAVE / QuickDraw 3D RAVE Reference
Constants


Texture Wrapping Values

A drawing engine may support OpenGL texture wrapping, in which case you might need to specify a texture wrapping mode in the u and v parametric directions. You specify an engine's texture wrapping modes by assigning a value to its kQATagGL_TextureWrapU and kQATagGL_TextureWrapV state variables. The default value of both these variables for a drawing engine that supports OpenGl texture wrapping is kQAGL_Repeat. You can use the following constants to specify a texture wrapping mode.

#define kQAGL_Repeat                   0
#define kQAGL_Clamp                    1
Constant descriptions

kQAGL_Repeat
The integer part of a u or v coordinate is ignored, thereby causing a texture to be repeated across the surface of an object.
kQAGL_Clamp
The u or v coordinates are clamped to the range [0, 1]. This mode prevents wrapping artifacts from occurring when a single texture is mapped onto an object.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
28 AUG 1996